package com.ruoyi.inventory.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存流水对象 biz_stock_flow
 * 
 * @author ruoyi
 * @date 2025-06-16
 */
public class BizStockFlow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流水ID */
    private Long flowId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 类型（1入库 2出库 3盘点调整） */
    @Excel(name = "类型", readConverterExp = "1=入库,2=出库,3=盘点调整")
    private String flowType;

    /** 变更前数量 */
    @Excel(name = "变更前数量")
    private Long beforeQty;

    /** 变更数量 */
    @Excel(name = "变更数量")
    private Long changeQty;

    /** 变更后数量 */
    @Excel(name = "变更后数量")
    private Long afterQty;

    /** 业务单号 */
    @Excel(name = "业务单号")
    private String bizNo;

    public void setFlowId(Long flowId) 
    {
        this.flowId = flowId;
    }

    public Long getFlowId() 
    {
        return flowId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setFlowType(String flowType) 
    {
        this.flowType = flowType;
    }

    public String getFlowType() 
    {
        return flowType;
    }

    public void setBeforeQty(Long beforeQty) 
    {
        this.beforeQty = beforeQty;
    }

    public Long getBeforeQty() 
    {
        return beforeQty;
    }

    public void setChangeQty(Long changeQty) 
    {
        this.changeQty = changeQty;
    }

    public Long getChangeQty() 
    {
        return changeQty;
    }

    public void setAfterQty(Long afterQty) 
    {
        this.afterQty = afterQty;
    }

    public Long getAfterQty() 
    {
        return afterQty;
    }

    public void setBizNo(String bizNo) 
    {
        this.bizNo = bizNo;
    }

    public String getBizNo() 
    {
        return bizNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("flowId", getFlowId())
            .append("productId", getProductId())
            .append("flowType", getFlowType())
            .append("beforeQty", getBeforeQty())
            .append("changeQty", getChangeQty())
            .append("afterQty", getAfterQty())
            .append("bizNo", getBizNo())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("remark", getRemark())
            .toString();
    }
}
